import {httprequests} from '../httpReq.js'

export const userLogin = (data) =>{
    console.log("接口处：",data);
    return httprequests('oauth2-user/login','POST',
    data
    )
}

export const updateMenberInfoReq =(data) =>{
    return httprequests('ums-member/updataMemberInfo','POST',data)
}

export const getMemberInfoReq = (data) =>{
    return httprequests('ums-member/getMemberInfo',"POST",
    data
    )
}

export const getPhoneCode = (data) =>{
    return httprequests('user/getCheckCode',"post",data)
}

export const userLoginByphone = (data) =>{
    return httprequests('ums-member/login',"POST",data)
}
/**
 * 阿里云验证码
 * @param {验证数据} data 
 */
export const captchaVerify = (data) =>{
   return httprequests('/ums-member/captchaVerfiry','post',data)
}

/**
 * 腾讯云验证码
 * @param {验证数据} data 
 */
export const captchaVerifyTencen = (data) =>{
   console.log("data",data);
   return httprequests('/motionVerify/miniprogVerify','POST',data)
}